package com.lzy.wzy;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.google.gson.JsonObject;
import com.lzy.wzy.config.MyPasswordEncoder;
import com.lzy.wzy.constant.MyConstant;
import com.lzy.wzy.mapper.UserMapper;
import com.lzy.wzy.model.IdentUser;
import com.lzy.wzy.model.User;
import org.apache.poi.ss.usermodel.BorderStyle;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.xssf.streaming.SXSSFRow;
import org.apache.poi.xssf.streaming.SXSSFSheet;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
import org.flowable.engine.IdentityService;
import org.flowable.idm.api.Group;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisCallback;
import org.springframework.data.redis.core.StringRedisTemplate;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Base64;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.stream.Collectors;

@SpringBootTest
public class Test {

    @Autowired
    private UserMapper userMapper;

    @Autowired
    private IdentityService identityService;

    
    @Autowired
    private StringRedisTemplate stringRedisTemplate;

    @Autowired
    private MyPasswordEncoder passwordEncoder;

    
    @org.junit.jupiter.api.Test
    public void test() throws IOException {
//        List<User> user = userMapper.getUser();
//        System.out.println(user);
//        System.out.println(passwordEncoder.encode("clientapp"));
        System.out.println(Base64.getEncoder().encodeToString("clientapp:clientapp".getBytes()));
    }
}
